/*
 Navicat Premium Dump SQL

 Source Server         : 127.0.0.1
 Source Server Type    : MySQL
 Source Server Version : 50744 (5.7.44)
 Source Host           : 127.0.0.1:3306
 Source Schema         : smart_community

 Target Server Type    : MySQL
 Target Server Version : 50744 (5.7.44)
 File Encoding         : 65001

 Date: 14/08/2025 13:29:16
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for sc_house_type_tag
-- ----------------------------
DROP TABLE IF EXISTS `sc_house_type_tag`;
CREATE TABLE `sc_house_type_tag` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tag_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标签名称',
  `tag_category` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '标签分类',
  `tag_description` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '标签描述',
  `status` tinyint(1) DEFAULT '1' COMMENT '状态：0-禁用，1-启用',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_tag_name` (`tag_name`),
  KEY `idx_tag_category` (`tag_category`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='户型标签表';

-- ----------------------------
-- Records of sc_house_type_tag
-- ----------------------------
BEGIN;
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (1, '全明户型', '空间布局', '所有房间都带窗户，采光良好', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (2, '南北通透', '空间布局', '南北方向都有窗户，通风良好', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (3, '主卧套间', '功能布局', '主卧带独立卫生间', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (4, '动静分离', '功能布局', '卧室与客厅厨房分离，居住舒适', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (5, '干湿分离', '功能布局', '卫生间与卧室客厅分离', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (6, '方正户型', '空间形态', '户型方正，空间利用率高', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (7, '赠送面积', '特殊优势', '有设备平台、阳台等赠送面积', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (8, '可改户型', '改造潜力', '支持户型改造，如两房改三房', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (9, '学区房户型', '适用人群', '适合有孩子上学需求的家庭', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (10, '刚需小户型', '适用人群', '适合首次购房的年轻家庭', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (11, '改善型大户型', '适用人群', '适合改善居住条件的家庭', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
INSERT INTO `sc_house_type_tag` (`id`, `tag_name`, `tag_category`, `tag_description`, `status`, `create_time`, `update_time`) VALUES (12, '投资型户型', '适用人群', '适合投资出租的户型', 1, '2025-08-13 07:06:09', '2025-08-13 07:06:09');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
